﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NewGlobalBizAssist.Lib;
using System.Data;

namespace NewGlobalBizAssist
{
    public partial class DirectProcess : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void btn_Click(object sender, EventArgs e)
        {
            //lblTbl.Text = "No Records available to process";

            DataTable dt  = new Member().GetForProcess(Common.GetSafeDate(txtdtfrom.Text), Common.GetSafeDate(txtdtto.Text));

            gvMembers.Visible = true;
            
            gvMembers.DataSource = dt;
            gvMembers.DataBind();
            lblTbl.Text = "&nbsp;";
            btnProcess.Visible = true;
        }

        protected void btn_Click_Process(object sender, EventArgs e)
        {
            btnProcess.Visible = false;
            gvMembers.Visible = false;
            lblTbl.Text = "Records has been processed successfully!";
        }
    }
}